﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Chung/QLSV.Master" AutoEventWireup="true" CodeBehind="LichDay.aspx.cs" Inherits="proRFID_DiemDanh.LichDay.LichDay" %>
<asp:Content ID="Content1" ContentPlaceHolderID="contentHead" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="contentMain" runat="server">
<table class="border" style="text-align:left" align="center">
    <tr>
        <th>Ngày dạy</th>
        <td width="200px"><asp:TextBox ID="txt_NgayHoc" runat="server" TextMode="Date" Width="97%"></asp:TextBox></td>
        <td style="vertical-align:middle">
            <%--<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                ErrorMessage="*" ControlToValidate="txt_NgayHoc" 
                CssClass="Thongbao" style="font-size:20px;"></asp:RequiredFieldValidator> 
            <asp:RangeValidator ID="RangeValidator1" runat="server" 
                ErrorMessage="2001-01-01 &lt; Ngày &lt; 2050-12-31" ControlToValidate="txt_NgayHoc" 
                MaximumValue="2050-12-31" MinimumValue="2001-01-01" CssClass="Thongbao"></asp:RangeValidator>--%>
        </td>
        <th rowspan="3">
            <asp:ImageButton ID="Imgcmd_Xem" runat="server" onclick="Imgcmd_Xem_Click" ImageUrl="~/Chung/img/xem.png"/>
        </th>
    </tr>
    <tr>
        <th>Buổi</th>
        <td>
            <asp:DropDownList ID="ddl_Buoi" runat="server" Width="100%">
                <asp:ListItem Value="0">--Chọn Buổi--</asp:ListItem>
                <asp:ListItem Value="1">Sáng</asp:ListItem>
                <asp:ListItem Value="2">Chiều</asp:ListItem>
                <asp:ListItem Value="3">Tối</asp:ListItem>
            </asp:DropDownList>
        </td>
        <td>
            <%--<asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                ErrorMessage="Vui lòng chọn buổi." ControlToValidate="ddl_Buoi" 
                CssClass="Thongbao" InitialValue="0"></asp:RequiredFieldValidator> --%>
        </td>
    </tr>
    <tr>
        <th>Giáo viên</th>
        <td>
            <asp:DropDownList ID="ddl_GiaoVien" runat="server" Width="100%">
            </asp:DropDownList>
        </td>
        <td>
            <%--<asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" 
                ErrorMessage="Vui lòng chọn giáo viên." ControlToValidate="ddl_GiaoVien" 
                CssClass="Thongbao" InitialValue="0"></asp:RequiredFieldValidator> --%>
        </td>
    </tr>
    </table>
    <div style="text-align:center; width:100%" >
        <fieldset style="width:1000px">
        <legend>Lịch dạy   </legend>
        <table class="border" style="text-align:center" align="center">
            <tr>
                <th width="120px">
                    Ngày</th>
                <th width="60px">
                    Buổi</th>
                <th width="250px">
                    Giáo viên 
                </th>                                    
                <th width="60px">
                    Phòng
                </th>
                <th width="200px">
                    Môn</th>
                <th width="100px">
                   Lớp
                </th>
                <th>
                    Sửa
                </th>
                <th>
                    Xóa
                 </th>
            </tr>
            <asp:Repeater ID="Rpt_LichDay" runat="server">
                <ItemTemplate>
                    <tr>
                        <td>
                           <%#Eval("NGAYHOC") %>
                        </td>
                        <td>
                            <%#Eval("TENBUOI") %>
                        </td>
                        <td>
                            <%#Eval("HOTENGV")%>
                        </td>    
                        <td>
                            <%#Eval("TENPHONG") %>
                        </td>
                        <td>
                            <%#Eval("TENMH") %>
                        </td>
                        <td>
                            <%#Eval("TENLOP") %>
                        </td>                                        
                        <td>
                            <a  href='/LichDay/SuaLichDay.aspx?ngay=<%#Eval("NGAYHOC")%>&buoi=<%#Eval("BUOIHOC") %>&magv=<%#Eval("MAGV") %>&maphong=<%#Eval("MAPHONG") %>&Tenmh=<%#Eval("TENMH") %>&Tenlop=<%#Eval("TENLOP") %>'>
                                <img src="../Chung/img/edit.png" width="15px"/></a>
                        </td>
                        <td>
                            <input name="xoa" type="checkbox" value="<%#Eval("NGAYHOC")%>@<%#Eval("BUOIHOC")%>@<%#Eval("MAGV")%>@<%#Eval("MAPHONG")%>@<%#Eval("MAMH")%>@<%#Eval("MALOP")%>" />
                        </td>
                    </tr>
                    
                </ItemTemplate>
            </asp:Repeater>
            <tr>
                <td colspan="8" style="text-align:right;">
                    <a href="../LichDay/ThemLichDay.aspx" ><img src="../Chung/img/add.png" class="nutnhan"/></a>
                    <asp:ImageButton ID="cmdXoa" runat="server" ImageUrl="~/Chung/img/delete.png" 
                        CssClass="nutnhan" onclick="cmd_xoa_Click"/>
                </td>
            </tr>
        </table>
    </fieldset>
</div>
</asp:Content>
